package cn.gzjp.modules.wx.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.wx.entity.WxCorp;
import cn.gzjp.modules.wx.dao.WxCorpDao;

/**
 * 企业号信息Service
 * @author zengcp
 * @version 2017-09-18
 */
@Service
@Transactional(readOnly = true)
public class WxCorpService extends CrudService<WxCorpDao, WxCorp> {

	public WxCorp get(String id) {
		return super.get(id);
	}
	
	public List<WxCorp> findList(WxCorp wxCorp) {
		return super.findList(wxCorp);
	}
	
	public Page<WxCorp> findPage(Page<WxCorp> page, WxCorp wxCorp) {
		return super.findPage(page, wxCorp);
	}
	
	@Transactional(readOnly = false)
	public void save(WxCorp wxCorp,String id) {
		super.insert(wxCorp,id);
	}
	
	@Transactional(readOnly = false)
	public void delete(WxCorp wxCorp) {
		super.deleteByLogic(wxCorp);
	}
	
}